package com.indexingsystem.boss.entity;

import java.io.Serializable;

/**
 * dh_menus_relations
 * @author 
 */
public class MenusRelationsNewKey implements Serializable {
    private String menuResId;

    private String resCategoryId;

    private static final long serialVersionUID = 1L;

    public String getMenuResId() {
        return menuResId;
    }

    public void setMenuResId(String menuResId) {
        this.menuResId = menuResId;
    }

    public String getResCategoryId() {
        return resCategoryId;
    }

    public void setResCategoryId(String resCategoryId) {
        this.resCategoryId = resCategoryId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MenusRelationsNewKey other = (MenusRelationsNewKey) that;
        return (this.getMenuResId() == null ? other.getMenuResId() == null : this.getMenuResId().equals(other.getMenuResId()))
            && (this.getResCategoryId() == null ? other.getResCategoryId() == null : this.getResCategoryId().equals(other.getResCategoryId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMenuResId() == null) ? 0 : getMenuResId().hashCode());
        result = prime * result + ((getResCategoryId() == null) ? 0 : getResCategoryId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", menuResId=").append(menuResId);
        sb.append(", resCategoryId=").append(resCategoryId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}